{extend name="index_base" /} {block name="seo"}
<title>跳转提示 - {$site_config['site_title']} - {$site_config['seo_title']}</title>
<meta name="keywords" content="{$site_config['seo_keyword']}">
<meta name="description" content="{$site_config['seo_description']}"> {/block} {block name="body"}
<article>
    <div>
        <ul class="indexWebList1 layui-clear">
            <div class="title">
                <h3>页面跳转中</h3>
            </div>
            <div align="center">
                <p>&nbsp;</p>
                <?php switch ($code) {?>
                <?php case 1:?>
                <i class="layui-icon" style=" font-size: 400px; color: #009688;">&#xe6af;</i>
                <p style="color:#009688">
                    <?php echo(strip_tags($msg));?>
                <p>&nbsp;</p>
                <p>&nbsp;</p>
                <p class="jump" style="font-size : 20px;color:#009688">
                    页面自动 <a style="color:#393D49" id="href" href="<?php echo($url);?>">跳转</a> 等待时间： <b
                        id="wait"><?php echo($wait);?></b>
                <p>&nbsp;</p>
                <?php break;?>
                <?php case 0:?>
                <p>&nbsp;</p>
                <i class="layui-icon" style=" font-size: 400px; color: #FF5722;">&#xe69c;</i>
                <p>&nbsp;</p>
                <p>&nbsp;</p>
                <p style="font-size : 20px;color:#FF5722">
                    <?php echo(strip_tags($msg));?>
                <p>&nbsp;</p>
                <p>&nbsp;</p>
                <p style="font-size : 20px;color:#FF5722" class="jump">
                    页面自动 <a style="color:#2F4056" id="href" href="<?php echo($url);?>">跳转</a> 等待时间： <b
                        id="wait"><?php echo($wait);?></b>
                </p>
                <p>&nbsp;</p>
                <?php break;?>
                <?php } ?>
            </div>
    </div>
    </div>
    </div>
    <div style="margin-top: 20px;"></div>
    <script type="text/javascript">
        (function () {
            var wait = document.getElementById('wait'),
                href = document.getElementById('href').href;
            var interval = setInterval(function () {
                var time = --wait.innerHTML;
                if (time <= 0) {
                    location.href = href;
                    clearInterval(interval);
                }
                ;
            }, 1000);
        })();
    </script>
    {/block}